$(document).ready(function() {
	
	var aoColumns = [
			{ "sTitle": "Nome", "mDataProp": "nome", "sClass": "right", "bVisible": true , "sDefaultContent":""},
			{ "sTitle": "Data de cadastro", "mDataProp": "dataCadastro", "sType":"date","sClass": "right", "bVisible": true , "sDefaultContent":""},
            { "sTitle": "Avaliada?", "mDataProp": "avaliado", "sClass": "right", "bVisible": true , "sDefaultContent":""},
            { "sTitle": "Carga Horária", "mDataProp": "cargaHoraria", "sType":"numeric","sClass": "right", "bVisible": true, "sDefaultContent":""},
            { "sTitle": "Modalidade de ensino", "mDataProp": "modalidadeEnsino", "sClass": "right", "bVisible": true , "sDefaultContent":""},
            { "sTitle": "Qtd. docentes", "mDataProp": "quantidadeDocente","sType":"numeric", "sClass": "right", "bVisible": true , "sDefaultContent":""},
            { "sTitle": "Qtd. monitores", "mDataProp": "quantidadeMonitor","sType":"numeric", "sClass": "right", "bVisible": true , "sDefaultContent":""}
		];
		
	var id = "disciplinaDataGrid";
	var url = "disciplinas/bServerSideHql";
//	var table = 	" Disciplina as o ";
	var table = 	"";
	var where = " where 1=1 ";
	var classe = "br.com.educa.modelo.curso.Disciplina";
	var arrString = 	JSON.stringify(aoColumns, function(key, val) {if (typeof val === 'function') { return val + '';} return val;});
	listServerSide(id, url, table, where,classe, arrString);
	
});